<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Conf\ConfModel;

use Srv\Libs\ConfModel\ConfAbstract;

final class WPushConf extends ConfAbstract
{
    public const PREFIX                         = 'WPUSH.';             // 配置前缀[必定点结尾]
    protected string $appKey                    = '';                   // 应用Key https://gomoob.github.io/php-pushwoosh/
    protected string $secret                    = '';                   // 秘钥Key
    protected string $logPath                   = '';                   // 日志路径

    /**
     * @param array $confData
     */
    public function __construct(array $confData)
    {
        $this->init($confData);
    }

    /**
     * @return string
     */
    public function getAppKey(): string
    {
        return $this->appKey;
    }

    /**
     * @return string
     */
    public function getSecret(): string
    {
        return $this->secret;
    }

    /**
     * @return string
     */
    public function getLogPath(): string
    {
        return $this->logPath;
    }
}